package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;
import com.itheima.pojo.SetmealCount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealMapper {

    void add(Setmeal setmeal);

    void edit(Setmeal setmeal);

    @Select("select * from t_setmeal where id = #{id}")
    Setmeal findById(Integer id);

    Page<Setmeal> selectByCondition(String queryString);

    List<SetmealCount> getSetmealCount();
}
